var express = require('express');
var router = express.Router();
var RWebSocket = require('reconnecting-websocket');
var Html5WebSocket = require('html5-websocket');
//var ws = new WebSocket("ws://123.56.199.100:8089/");

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get('/client',function(req,res,next){
    ws.send('hello!');
});

module.exports = router;
